package engine.newUi
{
	import engine.control.loading.MultLoader;
	import engine.scene.player.MoveAction;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	
	import newx.StageInfo;
	import newx.com.config.StaticIni;
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;

	public class ForbiddenZoneUI extends BaseUI
	{
		public static var _self:ForbiddenZoneUI
		public static function getInstance():ForbiddenZoneUI
		{
			if(_self==null)
			{
				_self= new ForbiddenZoneUI();
			}
			return _self ; 
		}
		public var left_btn:NxButton;  
		public var right_btn:NxButton ;
		public var reset_btn:NxButton; 
		public var sweep_btn:NxButton; 
		public var name_label:NxLabel; 
		public var bg:MovieClip; 
		
		public var btn_1:NxButton; 
		public var btncount:NxButton ; 
		public var line_1:MovieClip ; 
		public var itemGroup:NxViewGroup ; 
		
		
//		public var btn_6:NxButton; 
		public var fbcount:NxLabel ; 
		public var sellgroup:NxViewGroup ; 
		public var timelabel:NxLabel ; 
		public var restSell:NxButton; 
		public var backname:MovieClip; 
		public var labe_restbtn:NxLabel ; 
		public var mc:MovieClip ; 
		public var sellrestlabel:NxLabel ;
		public var label_22:NxLabel;
		public var back_1:MovieClip ; 
//		public var label_23:NxLabel;
//		public var label_24:NxLabel;
//		public var mask_1:MovieClip; 
//		public var text_1:MovieClip; 
		public var dihuawan1:MovieClip;
		public var dihuawen2:MovieClip;
		
		public var awardTips:NxClip; 
		public var label_23:NxLabel ; 
		//提示宝箱
		public var hint:MovieClip ; 
		//提示 宝箱字符串
		public var hintstorehouse:NxLabel ; 
		public function ForbiddenZoneUI(popupUI:Boolean=true)
		{
			super(popupUI)
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			var obj:Object = StaticIni.getIniObj("Res_Forbidden");
			var arr:Array = obj["res"].split(",");
			if( !MultLoader.getInstance().hasSourceByUrl(arr[0]) )
			{
				MultLoader.getInstance().load(arr , true ,createScene);
			}
			else
			{
				createScene();
			}
			
		}
		private function createScene():void
		{
			super.show();
		}
		override public function Init():void
		{
			ForbiddenZoneLogic.getInstance().Init();
		}
		override protected function BeforeShow():void
		{
			ForbiddenZoneLogic.getInstance().BeforeShow();
		}
		override protected function AfterHide():void
		{
			ForbiddenZoneLogic.getInstance().AfterHide();
		}
		
	}
}